# $Id :  $



# Copyright 2008-2010, Pascal Fautrero & JCharles
#
# This file is part of PyArchiver.
# 
# PyArchiver is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# PyArchiver is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with PyArchiver.  If not, see <http://www.gnu.org/licenses/>.



# Import packages

import ConfigParser

appDir = os.path.split(os.path.abspath(sys.argv[0]))[0]

#---------------------------------------------------------------------------

class My_RetrieveDrivePath():
    def __init__(self):
     
    #-----------------------------------------------------------------------
        
    def RetrieveDrivePath(self):
#        config = ConfigParser.ConfigParser()
#        config.read("Source.cfg")        
#        return config.get("Drives", "drive1")

        configDir = os.path.join(appDir, "config")
        file_cfg = os.path.join(configDir, "Source.cfg")

        config = ConfigParser.ConfigParser()
        config.read([file_cfg])
        return config.get("Drives", "drive1")


        

